import { Schema, type } from "@colyseus/schema";

export class Player extends Schema {
    @type("string") id: string;
    @type("string") name: string;
    @type("number") x: number;
    @type("number") y: number;
    @type("number") hp: number;
    @type("string") status: string;

    constructor(id: string, name: string, x: number, y: number, hp: number, status: string) {
        super();
        this.id = id;
        this.name = name;
        this.x = x;
        this.y = y;
        this.hp = hp;
        this.status = status;
    }
}
